package com.example.consumer.stream;

import com.example.config.stream.StreamMessage;
import lombok.Data;
import lombok.experimental.Accessors;


/**
 * 邮箱发送消息
 *
 * @author 芋道源码
 */
@Data
@Accessors(chain = true)
public class SysMailSendMessage implements StreamMessage {

    /**
     * 邮箱地址
     */
    private String address;


    /**
     * 用户编号，允许空
     */
    private Integer userId;
    /**
     * 用户类型，允许空
     */
    private Integer userType;

    @Override
    public String getStreamKey() {
        return "system.mail.send";
    }

}
